package org.jeecg.modules.c.service.impl;

import org.jeecg.modules.c.entity.MSC;
import org.jeecg.modules.c.mapper.MSCMapper;
import org.jeecg.modules.c.service.IMSCService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 监控中心管理
 * @Author: jeecg-boot
 * @Date:   2024-11-05
 * @Version: V1.0
 */
@Service
public class MSCServiceImpl extends ServiceImpl<MSCMapper, MSC> implements IMSCService {
    /**
     * 初始化监控中心状态
     */
    @Override
    public void initSC() {
        //获取所有监控中心
        for (MSC msc : list()) {
            //更新监控中心状态
            msc.setScstatus(0);
            updateById(msc);
        }

    }
}
